/**
 * jims
 */
package com.jims.master.modules.emr.service;

import com.jims.master.common.persistence.Page;
import com.jims.master.common.service.CrudService;

import com.jims.master.modules.emr.dao.ZhuyuanBasicInfoDao;
import com.jims.master.modules.emr.entity.ZhuyuanBasicInfo;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * 电子病历Service
 * @author WangYongQiang
 * @version 2018-08-16
 */
@Service
@Transactional(readOnly = true)
public class ZhuyuanBasicInfoService extends CrudService<ZhuyuanBasicInfoDao, ZhuyuanBasicInfo> {

	public ZhuyuanBasicInfo get(String id) {
		return super.get(id);
	}
	
	public List<ZhuyuanBasicInfo> findList(ZhuyuanBasicInfo zhuyuanBasicInfo) {
		return super.findList(zhuyuanBasicInfo);
	}
	
	public Page<ZhuyuanBasicInfo> findPage(Page<ZhuyuanBasicInfo> page, ZhuyuanBasicInfo zhuyuanBasicInfo) {
		return super.findPage(page, zhuyuanBasicInfo);
	}
	
	@Transactional(readOnly = false)
	public int save(ZhuyuanBasicInfo zhuyuanBasicInfo) {
		return super.save(zhuyuanBasicInfo);
	}
	
	@Transactional(readOnly = false)
	public int delete(ZhuyuanBasicInfo zhuyuanBasicInfo) {
		return super.delete(zhuyuanBasicInfo);
	}
	@Transactional(readOnly = false)
	public ZhuyuanBasicInfo findByVisitId(String visitId) { return dao.findByVisitId(visitId);}
	
}